package org.myspringframework.mvc.render;

import org.myspringframework.mvc.RequestProcessorChain;

/**
 * org.myspringframework.mvc.render <br>
 * 默认渲染器
 *
 * @author jaymin
 * @since 2021/5/22
 */
public class DefaultResultRender implements ResultRender {

    @Override
    public void render(RequestProcessorChain requestProcessorChain) throws Exception {
        int responseCode = requestProcessorChain.getResponseCode();
        requestProcessorChain.getHttpServletResponse().setStatus(responseCode);
    }
}
